{include file="public/header" /}

<div id="home_content" class="project_content">

  <div class="container">
    <div class="block"></div>
    {if $rows}
        <div class="row">
          {foreach name="rows" item="vo"}
          <div class="col-lg-2 col-md-3 col-sm-4 col-xs-6">
            <a href="{:addon_url('knowbase/index/project',[':id'=>$vo['id']])}" {if $vo['description']} alt="{$vo['title']}-{$vo['description']}" {else}  alt="{$vo['title']}" {/if}>
              <div class="project">
                <div class="project_img">
                  {if $vo['image']}
                    <img src="{$vo['image']}">
                  {else}
                    <img src="__CDN__/assets/addons/knowbase/imgs/default_cover.jpg">
                  {/if}
                </div>
                <div class="project_text flex-align-items-center flex-justify-content">
                  <div class="project_title">{$vo['title']}</div>
                </div>
              </div>
            </a>
          </div>
          {/foreach}
        </div>
    {else}
        {if $search}
          <div class="no_item text-muted text-center" >
            没有找到相关内容搜索结果~~
          </div>
        {else}
          <div class="no_item text-muted text-center" >
            未配置知识库，请先配置~~
          </div>
        {/if}
    {/if}
    
  </div>
  
  <div class="container">
    <div class="row text-center">
      {$multipage}
    </div>
  </div>
  
</div>
<script>
  var url_list = '{$url_list|htmlentities}';
</script>
{include file="public/footer" /}

